home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr22
/
mcalc199.zip
/
DEMO04.MCP
< prev
next >
Wrap
Text File
|
1994-10-16
|
670b
|
43 lines
1 k=-1
goto 3
2 k=1
goto 3
3 a=26
b=1.0e20
d=b
c=-b
e=c
for i=0 to rcl(a+4)-1 step 1
x=rcl(i+rcl(a))
y=rcl(i+rcl(a+1))
if x<b then b=x
if x>c then c=x
if y<d then d=y
if y>e then e=y
next
f=(b+c)/2
g=(c-b)/2
h=(d+e)/2
j=(e-d)/2
graph f-1.1*g,h-1.1*j,f+1.1*g,h+1.1*j
for i=0 to rcl(a+4)-1 step 1
x=rcl(i+rcl(a))
y=rcl(i+rcl(a+1))
dot x,y
next
color 3
for x=b to c step (c-b)/400
if k<0 then gosub 100
if k>0 then gosub 200
if x=b then pixel x,y,-1
line x,y
next
end
100 interpol a,x
y=last
return
200 interpol_ a,x
y=last
return